<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>超市零售系统</title>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" th:href="@{/vendor/bootstrap/css/bootstrap.min.css}">
    <link th:href="@{/vendor/fonts/circular-std/style.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/libs/css/style.css}">
    <link rel="stylesheet" th:href="@{/vendor/fonts/fontawesome/css/fontawesome-all.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/vendor/datatables/css/dataTables.bootstrap4.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/vendor/datatables/css/buttons.bootstrap4.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/vendor/datatables/css/select.bootstrap4.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/vendor/datatables/css/fixedHeader.bootstrap4.css}">
</head>

<body>

<!-- main wrapper -->

<div class="dashboard-main-wrapper">

    <!-- navbar::头部导航栏 -->

    <div class="dashboard-header">
        <div th:insert="~{commons/commons::topBar}"></div>
    </div>

    <!-- end navbar -->


    <!-- left sidebar -->

    <div class="nav-left-sidebar sidebar-dark">
        <div class="menu-list">
            <div th:insert="~{commons/commons::sideBar}"></div>
        </div>
    </div>

    <!-- end left sidebar -->


    <!-- wrapper  -->

    <div class="dashboard-wrapper">
        <div class="container-fluid  dashboard-content">

            <!-- pageheader -->

            <div class="row">
                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="page-header">
                        <h2 class="pageheader-title">报废记录</h2>
                        <p class="pageheader-text">Proin placerat ante duiullam scelerisque a velit ac porta, fusce sit
                            amet vestibulum mi. Morbi lobortis pulvinar quam.</p>
                        <div class="page-breadcrumb">
                            <nav aria-label="breadcrumb">
                                <ol class="breadcrumb">
                                </ol>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
            <form th:action="@{/scrap/queryScrapByDate}" method="post">
                <div class="col-lg-3"  style="float: left">
                    <div class="input-group">
                        <span class="input-group-addon">
                             <span class="input-group-text" id="basic-addon3">商品日期编号</span>
                        </span>
                        <input type="text" name="date" class="form-control" aria-label="...">
                    </div>
                </div>
                <input type="submit" class="btn btn-primary" value="查询" />
            </form>

            <!--            <div class="row">-->
            <!--                <div class="col-md-4 column">-->
            <!--                    <a class="btn btn-success" th:href="@{/product/importProduct}">商品入库</a>-->
            <!--                </div>-->
            <!--            </div>-->
            <br>

            <!-- end pageheader -->

            <div class="row">

                <!-- basic table  -->

                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered first text-center">
                                    <thead>
                                    <tr>
                                        <th>报废编号</th>
                                        <th>商品编号</th>
                                        <th>商品名称</th>
                                        <th>商品数量</th>
                                        <th>商品进货价</th>
                                        <th>报废原因</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="product_scrap : ${scrapList}">
                                        <td th:text="${product_scrap.getProduct_date()}"></td>
                                        <td th:text="${product_scrap.getProduct_id()}"></td>
                                        <td th:text="${product_scrap.getProduct_name()}"></td>
                                        <td th:text="${product_scrap.getProduct_number()}"></td>
                                        <td th:text="${product_scrap.getProduct_price()}"></td>
                                        <td th:text="${product_scrap.getProduct_type()}"></td>
                                        <!--                                        <td>-->
                                        <!--                                            <a class="btn btn-sm btn btn-info" th:href="@{/product/upProduct/}+${product_stock.getProduct_id()}">上架</a>-->
                                        <!--                                            <a class="btn btn-sm btn btn-primary" th:href="@{/product/scrapProduct/}+${product_stock.getProduct_id()}">报废</a>-->
                                        <!--                                            <a class="btn btn-sm btn btn-danger" th:href="@{/product/updateProduct/}+${product_stock.getProduct_id()}">修改</a>-->
                                        <!--                                            &lt;!&ndash;                                                    <a class="btn btn-sm btn-danger" th:href="@{/book/deleteBook/}+${book.bookID}">删除</a>&ndash;&gt;-->
                                        <!--                                        </td>-->
                                        <!--                                                <script>-->
                                        <!--                                                    function addCommodity() {-->
                                        <!--                                                        alert("添加成功！");-->
                                        <!--                                                    }-->
                                        <!--                                                </script>-->
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- end basic table  -->

            </div>
        </div>
    </div>
    <!-- end footer -->
    <div class="footer">
        <div class="container-fluid">
            <div th:insert="~{commons/commons::footer}"></div>
        </div>
    </div>
</div>




<script th:src="@{/vendor/jquery/jquery-3.3.1.min.js}"></script>
<script th:src="@{/vendor/bootstrap/js/bootstrap.bundle.js}"></script>
<script th:src="@{/vendor/slimscroll/jquery.slimscroll.js}"></script>
<script th:src="@{/vendor/multi-select/js/jquery.multi-select.js}"></script>
<script th:src="@{/libs/js/main-js.js}"></script>

<script th:src="@{/vendor/datatables/js/dataTables.bootstrap4.min.js}"></script>
<script th:src="@{/vendor/datatables/js/buttons.bootstrap4.min.js}"></script>
<script th:src="@{/vendor/datatables/js/data-table.js}"></script>


</body>

</html>